# -*- coding: utf-8 -*-
from rest_framework import serializers
from .models import Label, LabelStickGood
from good.serializers import GoodSerializer


class LabelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Label
        fields = '__all__'


class LabelStickGoodSerializer(serializers.ModelSerializer):
    fk_good = GoodSerializer()
    fk_label = LabelSerializer()
    class Meta:
        model = LabelStickGood
        fields = '__all__'


